package main

import (
	"encoding/json"
	"fmt"
)
type response2 struct {
	Page   int
	Fruits []string
}


func main()  {
	str := `{"page": 1, "fruits": ["apple", "peach"]}`
	//var res interface{}
	res := response2{}
	json.Unmarshal([]byte(str), &res)
	fmt.Println(res)
	fmt.Println(res.Fruits[0])
	// {"error":{"status":202,"code":400,"description":"The request body can’t be pasred as valid data."}}
	



}
